﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for DoAction
/// </summary>
public static class DoAction
{
    public static string Action(string page,string action, string content)
    {
        string url = string.Empty;

        url= PhysicalPathAdmin+"page="+page+"&action="+action;
        url+=content;

        return url;
    }
    public static string ActionWithID(string page, string action, string content)
    {
        string url = string.Empty;
        url = Action(page,action,"");
        url += "&"+content;

        return url;
    }
    public static string ActionWithPage(string page)
    {
        return PhysicalPathAdmin + "page=" + page;
    }
    public static string ActionPageView(string page,string action)
    {
        string url = Action(page, action, "");
        return url;
    }
    //static string physicalPathAdmin;
    public static string PhysicalPathAdmin
    {
        get { return "~/Admin/Index.aspx?"; }
    }
}
